package com.angel.architecture.daos.impl;

import java.util.Date;
import java.util.List;

import com.angel.architecture.persistence.ids.ObjectId;
import com.angel.dao.generic.impl.GenericSpringHibernateDAO;
import com.angel.io.daos.FileProcessorDescriptorDAO;
import com.angel.io.descriptor.FileProcessorDescriptor;

/**
 *
 * @author William
 * @since 08/April/2009
 *
 */
public class FileProcessorDescriptorSpringHibernateDAO extends GenericSpringHibernateDAO<FileProcessorDescriptor, ObjectId> implements FileProcessorDescriptorDAO {

    public FileProcessorDescriptorSpringHibernateDAO(){
        super(FileProcessorDescriptor.class, ObjectId.class);
    }

	public List<FileProcessorDescriptor> findAllByProcessDate(Date processDate) {
		return (List<FileProcessorDescriptor>) super.findAll("processDate", processDate);
	}

	public FileProcessorDescriptor findByName(String name) {
		return super.findUnique("name", name);
	}
}
